
    
import ajax from './ajax'

let base = "school/"

export default {
    //分页查询
    page:(params)=>ajax.get(base+"page-list",{params}),
    add:(data)=>ajax.post(base+"add",data),
    del:(id)=>ajax.delete(base+id),
    updateKey:(data)=>ajax.put(base,data),
    select:()=>ajax.get(base+"select"),
    // 全查
    selects: (params) => ajax.get(base + "/front/selects", { params }),
    // 通过主键查询
    selectByPrimary: (schoolId) => ajax.get(base + "/front/select-by-primary/" + schoolId),
    page:(params)=>ajax.get(base+"/page-list",{params})


}